package com.zoweunion.mechanic.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zoweunion.mechanic.entity.LeaseEntity;
import com.zoweunion.mechanic.entity.NeedLeaseEntity;
import org.springframework.stereotype.Component;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

/**
 * 出租
 * 
 * @author xp
 * @email 17688825585@163.com
 * @date 2021-04-19 19:03:43
 */
@Component
public interface LeaseDao  extends BaseMapper<LeaseEntity>{

    List<LeaseEntity> queryPage(@Param("map") Map<String, Object> map);

    List<LeaseEntity> queryPageById(@Param("map") Map<String, Object> map);

    List<LeaseEntity>  selectCarIdN(@Param("map")Map<String, Object> map);

    List<LeaseEntity>  selectCarId(@Param("map")Map<String, Object> map);

    List<LeaseEntity> selectNotCarId(@Param("map")Map<String, Object> map);

    List<LeaseEntity> selectNotCarIdByUserId(@Param("map")Map<String, Object> map);

    List<NeedLeaseEntity>  selectNeedLease(@Param("map")Map<String, Object> map);

    LeaseEntity getInfoId(@Param("id")long id);
}
